]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Ignore dragEnd while the animation is still in progress
authorAdel Gadllah <adel.gadllah@gmail.com>
Fri, 27 Sep 2013 10:41:12 +0000 (12:41 +0200)
committerAdel Gadllah <adel.gadllah@gmail.com>
Fri, 27 Sep 2013 10:54:22 +0000 (12:54 +0200)
Moving the mouse fast enough during xdnd will trigger a xdnd-leave event
because the input shape is not updated until after the animation is done.

So simply ignore the leave events while the animation is in progress.

https://bugzilla.gnome.org/show_bug.cgi?id=708887

js/ui/overview.js

index 78dcf534f3bfda0c6555bda8143508687e0bd49a..2210dfed84a810f71ecdad50ab394d140b8715cf 100644 (file)
@@ -313,6 +313,9 @@ const Overview = new Lang.Class({
     },
 
     _onDragEnd: function(time) {
+        if (this.animationInProgress)
+            return;
+
         this._inXdndDrag = false;
 
         // In case the drag was canceled while in the overview